<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:91:"/www/wwwroot/crm.liunuo.net/public/../application/user/view/config/edit_config_mobile.phtml";i:1552999926;s:67:"/www/wwwroot/crm.liunuo.net/application/user/view/base_mobile.phtml";i:1552999924;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title><?php echo config('website.site_name')?></title>
<link rel="stylesheet" type="text/css" href="/static/hui/css/hui.css" />
<style>.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}</style>

</head>
<body>

<header class="hui-header">
    <div id="hui-back"></div>
    <h1>编辑数据</h1>
</header>
<div class="hui-wrap">
    <form action="<?php echo request()->url(); ?>" class="hui-form" method="post">
        <div class="hui-form-items">
            <div class="hui-form-items-title">配置分组</div>
            <div class="hui-form-select">
                <select name="group" <?php if(isset($data['is_sys']) == '1'): ?>disabled<?php endif; ?>>
                    <option value="">请选择配置分组</option>
                    <?php $_5c964d31b6b1e=config('customer'); if(is_array($_5c964d31b6b1e) || $_5c964d31b6b1e instanceof \think\Collection || $_5c964d31b6b1e instanceof \think\Paginator): if( count($_5c964d31b6b1e)==0 ) : echo "" ;else: foreach($_5c964d31b6b1e as $k=>$v): ?>
                    <option value="<?php echo $k; ?>" <?php if(isset($data) and $data['group'] == $k): ?>selected="selected"<?php endif; ?>><?php echo $v; ?>[<?php echo $k; ?>]</option>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </select>
            </div>
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">配置标题</div>
            <input type="text" name="title" value="<?php echo (isset($data['title']) && ($data['title'] !== '')?$data['title']:''); ?>" autocomplete="off" class="hui-input hui-input-clear">
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">配置标识</div>
            <input type="text" name="name" value="<?php echo (isset($data['name']) && ($data['name'] !== '')?$data['name']:''); ?>" autocomplete="off" class="hui-input hui-input-clear" <?php if(isset($data['is_sys'])=='1'): ?>disabled<?php endif; ?>>
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">配置类型</div>
            <div class="hui-form-select">
                <select name="type" <?php if(isset($data['is_sys'])=='1'): ?>disabled<?php endif; ?>>
                    <option value="">请选择配置类型</option>
                    <?php $_5c964d31b69fe=config('configType'); if(is_array($_5c964d31b69fe) || $_5c964d31b69fe instanceof \think\Collection || $_5c964d31b69fe instanceof \think\Paginator): if( count($_5c964d31b69fe)==0 ) : echo "" ;else: foreach($_5c964d31b69fe as $k=>$v): ?>
                    <option value="<?php echo $k; ?>" <?php if(isset($data) and $data['type'] == $k): ?>selected="selected"<?php endif; ?>><?php echo $v; ?>[<?php echo $k; ?>]</option>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </select>
            </div>
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">默认值</div>
            <input type="text" name="value" value="<?php echo (isset($data['value']) && ($data['value'] !== '')?$data['value']:''); ?>" autocomplete="off" class="hui-input">
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">选项值</div>
            <div class="hui-form-textarea">
                <textarea name="options" class="layui-textarea" placeholder="此配置仅适用于配置类型为单选项、下拉选项。参考格式如下：
1:是
0:否" style="height:130px"><?php echo (isset($data['options']) && ($data['options'] !== '')?$data['options']:''); ?></textarea>
            </div>
        </div>
        <div style="padding:15px 8px;">
            <button class="hui-button hui-button-large hui-primary" lay-filter="*" lay-submit="">保存</button>
        </div>

    </form>
</div>

<div class="hui-slide-menu">
    <ul>
        <?php if(is_array($navbar) || $navbar instanceof \think\Collection || $navbar instanceof \think\Paginator): if( count($navbar)==0 ) : echo "" ;else: foreach($navbar as $key=>$v): if($v['id']=='1'): if(is_array($v['children']) || $v['children'] instanceof \think\Collection || $v['children'] instanceof \think\Paginator): if( count($v['children'])==0 ) : echo "" ;else: foreach($v['children'] as $key=>$n1): ?>
                    <li><a href="javascript:hui.open('<?php echo \think\Request::instance()->root(true); ?>/<?php echo $n1['url']; ?>');"><?php echo $n1['name']; ?></a></li>
                <?php endforeach; endif; else: echo "" ;endif; endif; endforeach; endif; else: echo "" ;endif; ?>
        <li><a href="javascript:hui.open('<?php echo url('user/index/logout'); ?>');">退出账户</a></li>
        <li style="padding-top:30px;">
            <button type="button" class="hui-button hui-button-large" onclick="hui.closeSlideMenu();">关闭菜单</button>
        </li>
    </ul>
</div>
<div id="hui-footer">
    <a href="javascript:hui.open('/user/');" id="nav-home">
        <div class="hui-footer-icons hui-icons-home"></div>
        <div class="hui-footer-text">首页</div>
    </a>
    <a href="javascript:hui.open('/user/customer/track');" id="nav-news">
        <div class="hui-footer-icons hui-icons-news"></div>
        <div class="hui-footer-text">跟踪</div>
    </a>
    <div style="width:20%; text-align:center;" class="hui-fl">
        <img src="/static/hui/img/logo_footer.png" height="44" onclick="hui.open('/user/customer/');" />
    </div>
    <a href="javascript:hui.open('/user/customer/remind');" id="nav-forum">
        <div class="hui-footer-icons hui-icons-forum"></div>
        <div class="hui-footer-text">提醒</div>
    </a>
    <a href="javascript:hui.showSlideMenu();" id="nav-my" id="hui-header-menu" onclick="hui.showSlideMenu();">
        <div class="hui-footer-icons hui-icons-my"></div>
        <div class="hui-footer-text">我的</div>
    </a>
</div>
<script src="/static/hui/js/hui.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
hui.slideMenu();
//hui('#nav-my').pointMsg();
//hui('#nav-news').pointMsg('hot', null, null, null, '1px');
<?php $remind_sum= today_remind_sum();?>
hui('#nav-forum').pointMsg(<?php echo $remind_sum['count']; ?>);
</script>
<script src="/static/libs/layui/layui.all.js"></script>
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/layui.base_mobile.js"></script>

</body>
</html>